var express = require('express');
var router = express.Router();
var { menuModel } = require('../models/menu');

/* GET home page. */
router.get('/data', async (req, res, next) => {
  const data = await menuModel.find();
  console.log(data);
  res.send({ code: 200, data })
});

module.exports = router;
